package com.tool;
/**
 * *********************************************
 * @author Administrator
 * @FileName LogDataBaseSqlTool.java
 * @Description操作数据库（爬虫日志数据库）
 **********************************************
 */
public class LogDataBaseSqlTool {
	/**
	 * 开始爬虫
	 * @return
	 */
	public static String getLogDataBase_startCrawler(){
		String sql = "update crawler_log set status=?,start_time=? where file_name=?";
		return sql;
	}
	/**
	 * 结束爬虫
	 * @return
	 */
	public static String getLogDataBase_finishCrawler(){
		String sql = "update crawler_log set status=?,finish_time=? where file_name=?";
		return sql;
	}
	/**
	 * 结束种子爬虫
	 * @return
	 */
	public static String getLogDataBase_finishSeedCrawler(){
		String sql = "update crawler_log set total_seeds=? where file_name=?";
		return sql;
	}
	/**
	 * 执行爬虫
	 * @return
	 */
	public static String getLogDataBase_executeCrawler(){
		String sql = "update crawler_log set finished_seeds=? where file_name=?";
		return sql;
	}
	/**
	 * 爬虫task
	 * @return
	 */
	public static String getLogDataBase_updateCrawlerTask(){
		String sql = "update crawler_log set task_file_name=? where file_name=?";
		return sql;
	}
	
	public static String getLogDataBase_updateCrawlerTask_forTry(){
		String sql = "update crawler_log set task_file_name_fortry=? where file_name=?";
		return sql;
	}

}
